package com.daylightrobbery.server.packet.game.house;

import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class MortgageHousePacket implements RoomDataPacket {
    public static int type = 50004;
    public String uid;
    public int roomId;
    public int pathIndex ;
    public boolean mortgage;
    public int money;

    public String getUid() {
        return uid;
    }

    public MortgageHousePacket setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public MortgageHousePacket setRoomId(int roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getPathIndex() {
        return pathIndex;
    }

    public MortgageHousePacket setPathIndex(int pathIndex) {
        this.pathIndex = pathIndex;
        return this;
    }

    public boolean isMortgage() {
        return mortgage;
    }

    public MortgageHousePacket setMortgage(boolean mortgage) {
        this.mortgage = mortgage;
        return this;
    }

    public int getMoney() {
        return money;
    }

    public MortgageHousePacket setMoney(int money) {
        this.money = money;
        return this;
    }

    @Override
    public DataPacket process() {
        return this;
    }

    @Override
    public int getType() {
        return type;
    }

    @Override
    public int getRoomId() {
        return roomId;
    }

    @Override
    public String toString() {
        return "MortgageHousePacket{" +
                "uid='" + uid + '\'' +
                ", roomId=" + roomId +
                ", pathIndex=" + pathIndex +
                ", mortgage=" + mortgage +
                ", money=" + money +
                '}';
    }
}
